/**
 * 质控现场考核
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.localeCheck',['waterCommon']);
	
	module.service('$localeCheckService',function($waterDataCommon){
	/**
	 * 查询
	 * checktype--考核类型
	 * STATIONID--站点编号
	 * start--开始时间
	 * end--结束时间
	 */
	this.getList=function(queryObject){
		var promise = $waterDataCommon.post("/localCheck/getList",queryObject);
		return promise;
	}
	/**
	 * 查询考核详情
	 * checkid
	 * checktype
	 */
	this.getDetailList=function(queryObject){		
		var promise = $waterDataCommon.post("/localCheck/getDetail",queryObject);
		return promise;
	}
	/**
	 * 导出
	 */
	this.ToExcel=function(queryObject){
		var queryString = $waterDataCommon.jsonTostring(queryObject);
		window.open(getBasePath()+"/localCheck/toExecl.do?"+queryString);
	}
	})
}(window, angular));